<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:fragment="foo">
        <script type="text/javascript" src="/js/jquery-2.1.1.min.js"></script>
    </div>
</body>
</html>